



<div class="module clearfix border-bottom">
	<h1>
		<?= ucfirst(strtolower($profile['details']->title));?>
		- <small><?= $this->location_model->get_city_data($profile['details']->city)->cityname;?>,
			<?= $this->location_model->get_region_data($profile['details']->state)->statename;?>
		</small>
	</h1>
</div>




<div class="panel panel-default featured  margin-bottom">
	<div class="row ">
		<div class="panel-body">
			<!--
		<span class="pull-right"> 
		<?php if(!$this->session->userdata('mem_id')){?>
		
		<a href="<?= base_url();?>member/login" title="You must login first"><button type="submit" class="disabled btn btn-default btn-xs" name="like" id="like" title="Like"
						value="51">
						<i class="glyphicon glyphicon-thumbs-up"></i> | <?= $like['data'];?> 
					</button><button type="submit" class="disabled btn btn-default btn-xs" name="unlike" title="Unlike"
						id="unlike" value="1">
						<i class="glyphicon glyphicon-thumbs-down"></i> | <?= $unlike['data']?>
					</button></a>
					<?php }?>
		</span>
			<!-- Start Like Or Dislike View Code 
			<span class="pull-right">
			
			
			<?php if(!$like['counter']){?> <?php if($this->session->userdata('mem_id')){?>
				<form
					action="<?= base_url();?>listing/profile/like/<?= $profile['details']->id; ?>"
					role="form" method="POST">
					<input type="hidden" name="mem_id" id="mem_id"
						value="<?= $this->session->userdata('mem_id');?>">
						
					<button type="submit" class="btn btn-default btn-xs" name="like" id="like" title="Like"
						value="51">
						<i class="glyphicon glyphicon-thumbs-up"></i> | <?= $like['data'];?> 
					</button><button type="submit" class="disabled btn btn-default btn-xs" name="unlike" title="Unlike"
						id="unlike" value="1">
						<i class="glyphicon glyphicon-thumbs-down"></i> | <?= $unlike['data']?>
					</button>
				<!-- 	<i class="glyphicon glyphicon-thumbs-up"></i><?= $like['data'];?><i class="glyphicon glyphicon-thumbs-down"><?= $unlike['data']?></i> 
					<?php }?>
					<?php }?>
				</form> <?php if($like['counter']){?>
				<form
					action="<?= base_url();?>listing/profile/unlike/<?= $profile['details']->id; ?>"
					role="form" method="POST">
					<input type="hidden" name="id" value="<?= $like['counter']->id;?>">
					<input type="hidden" name="mem_id" id="mem_id"
						value="<?= $this->session->userdata('mem_id');?>"> <input
						type="hidden" name="liked_on" id="liked_on"
						value="<?= $like['counter']->liked_on;?>">
<?php if($like['counter']->likes == "51"){?>
					
					<button type="submit" class="disabled btn btn-default btn-xs" name="unlike" title="Unlike"
						id="unlike" value="1">
						<i class="glyphicon glyphicon-thumbs-up"></i> | <?= $like['data']?>
					</button><button type="submit" class="btn btn-default btn-xs" name="unlike" title="Unlike"
						id="unlike" value="1">
						<i class="glyphicon glyphicon-thumbs-down"></i> | <?= $unlike['data']?>
					</button>  
					
					
					<?php }else{?>
					<button type="submit" class="btn btn-default btn-xs" name="unlike" id="unlike" title="Like"
						value="51">
						<i class="glyphicon glyphicon-thumbs-up"></i> | <?= $like['data'];?>
					</button><button type="submit" class="disabled btn btn-default btn-xs" name="unlike" title="Unlike"
						id="unlike" value="1">
						<i class="glyphicon glyphicon-thumbs-down"></i> | <?= $unlike['data']?>
					</button>  
					<?php }?>
					
				</form> 
				<?php }?>
		</span>
		<!-- End of Like Dislike View Code -->	
			
			<div class="col-lg-3 col-xs-3">


				<img class="img-responsive img-thumbnail" alt="Responsive image"
					src="<?= base_url();?>/assets/images/photo/<?= $profile['details']->photo;?>"
					height="185" width="146">
			</div>

			<div class="col-lg-9">


				<h1 class="title-text text-danger">
					<?= ucfirst(strtolower($profile['details']->title));?>
					- <small><?= $this->location_model->get_city_data($profile['details']->city)->cityname;?>,
						<?= $this->location_model->get_region_data($profile['details']->state)->statename;?>
					</small>
				</h1>
				<p class=" small"><?php if($profile['details']->description){?>
				<?= $profile['details']->description;?>
				<?php }?></p>

				<p>
					<botton class="btn btn-sm btn-danger" data-toggle="modal"
						data-target="#myModal">Send Enquiry</botton>
					<!-- <botton class="btn btn-sm btn-default">Send to a friend</botton> -->

					<span class="pull-right"> <?php if($profile['details']->verified == 1){?>
						<img class="img-responsive" alt="Responsive image"
						title="Verified Listing"
						src="<?= base_url();?>/assets/images/icon-market-check.png"> <?php }?>
					</span> <span class="pull-right"> <?php if($profile['details']->featured == 1){?>

						<img class="img-responsive" alt="Responsive image"
						src="<?= base_url();?>/assets/images/badge_premium.png"> <?php }?>
					</span>


				</p>

			</div>

		</div>
	</div>
</div>

<div class="panel panel-default margin-top">
	<div class="panel-body">
		<h2 class="title-text">
			Speciality of Mr.
			<?= ucfirst(strtolower($profile['details']->title));?>
			</h4>
			<div class="col-xs-12">
				<ul class="list-unstyled">
					<?php if($term['all']){?>
					<?php foreach($term['all'] as $term):?>
					<li class="col-xs-6"><a
						href="<?= base_url()."browse/practice/".$this->commoncall->url($this->listing_model->getCategory($term->term_value)->name)."-".$term->term_value; ?>"
						class="text-info"><?= $this->listing_model->getCategory($term->term_value)->name; ?>
					</a> <?php endforeach;
			}?> <!-- <li class="col-xs-4"><a href="#" class="text-danger">Business</a></li>
				<li class="col-xs-4"><a href="#" class="text-danger">Civil Rights</a>
				</li>
				<li class="col-xs-4"><a href="#" class="text-danger">Criminal
						Defense</a></li>
				<li class="col-xs-4"><a href="#" class="text-danger">Divorce /
						Separation</a></li>
				<li class="col-xs-4"><a href="#" class="text-danger">DUI / DWI</a></li>
				<li class="col-xs-4"><a href="#" class="text-danger">Employment /
						Labor</a></li> -->
				
				</ul>
			</div>
	
	</div>
</div>

<div class="margin-bottom">
	<h2 class="title-text strong border-bottom">
		Overview of Mr.
		<?= ucfirst(strtolower($profile['details']->title));?>
	</h2>
	<div class="clearfix margin-bottom border-bottom">
		<div class="col-xs-3 strong text-muted">CONTACT INFORMATION</div>

		<div class="col-xs-9">
			<address>
				<strong> <?php if($profile['details']->address1){?> <?= $profile['details']->address1;?>
					<?php }?>, <?php if($profile['details']->address2){?> <?= $profile['details']->address2;?>
					<?php }?>
				</strong> <br>
				<?php if($profile['details']->city){?>
				<?= $this->location_model->get_city_data($profile['details']->city)->cityname;?>
				<?php }?>
				,
				<?php if($profile['details']->state){?>
				<?= $this->location_model->get_region_data($profile['details']->state)->statename;?>
				<?php }?>
				<?php if($profile['details']->zip){?>
				<?= $profile['details']->zip;?>
				<?php }?>
				<br> <abbr title="Phone">P:</abbr>
				<?php if($profile['details']->phone1){?>
				<?= $profile['details']->phone1;?>
				<?php }?>
				,
				<?php if($profile['details']->phone2){?>
				<?= $profile['details']->phone2;?>
				<?php }?>
				<!-- <br> <abbr title="Phone"><i class="glyphicon glyphicon-eye-open"></i>
				</abbr> (
				<?= $profile['details']->hits;?>
				) -->
			</address>
			<!-- <a href="#" data-toggle="modal" data-target="#myMap" class="text-danger">View Map </a> -->
		</div>

	</div>

	<!--<div class="clearfix margin-bottom border-bottom">
		<div class="col-xs-3 strong text-muted">ABOUT ME</div>

		<div class="col-xs-9 small">

			<p>
				<?php if($profile['details']->description){?>
				<?= $profile['details']->description;?>
				<?php }?>
			</p>
		</div>

	</div>-->
<!--
	<div class="clearfix margin-bottom border-bottom">
		<div class="col-xs-3 strong text-muted">BRANCH OFFICE</div>

		<div class="col-xs-9 small">
			<address class="col-xs-6">
				<strong>795 Folsom Ave, Suite 600</strong> <br> San Francisco, CA
				94107<br> <abbr title="Phone">P:</abbr> (123) 456-7890
			</address>
			<address class="col-xs-6">
				<strong>795 Folsom Ave, Suite 600</strong> <br> San Francisco, CA
				94107<br> <abbr title="Phone">P:</abbr> (123) 456-7890
			</address>
			<address class="col-xs-6">
				<strong>795 Folsom Ave, Suite 600</strong> <br> San Francisco, CA
				94107<br> <abbr title="Phone">P:</abbr> (123) 456-7890
			</address>
		</div>

	</div>
-->

	<?php if($qualification){?>
	<div class="clearfix margin-bottom border-bottom">
		<div class="col-xs-3 strong text-muted">QUALIFICATION</div>

		<div class="col-xs-9">
			<ul class="list-unstyled margin-bottom ">
				<li class="col-xs-6 strong">Institute/College</li>
				<li class="col-xs-4 strong">Major Subject</li>
				<li class="col-xs-2 strong">Year</li>
			</ul>
			<ul class="list-unstyled padding-bottom">

				<?php foreach($qualification as $qualification):?>
				<li class="col-xs-6 small"><?= $qualification->institute;?></li>
				<li class="col-xs-4 small"><?= $qualification->subject;?></li>
				<li class="col-xs-2 small"><?= $qualification->year;?></li>
				<?php endforeach;?>

			</ul>

		</div>

	</div>
	<?php }?>
	<?php if($awards){?>
	<div class="clearfix margin-bottom border-bottom">
		<div class="col-xs-3 strong text-muted">AWARDS</div>

		<div class="col-xs-9">
			<ul class="list-unstyled margin-bottom ">
				<li class="col-xs-6 strong">Awards</li>
				<li class="col-xs-4 strong">Organization</li>
				<li class="col-xs-2 strong">Year</li>
			</ul>
			<?php foreach($awards as $awards):?>
			<ul class="list-unstyled padding-bottom">
				<li class="col-xs-6 small"><?= $awards->award;?></a>
				</li>
				<li class="col-xs-4 small"><?= $awards->organization;?></a>
				</li>
				<li class="col-xs-2 small"><?= $awards->year;?></li>
			</ul>
			<?php endforeach;?>
		</div>

	</div>
	<?php }?>

	<?php if($association){?>
	<div class="clearfix margin-bottom border-bottom">
		<div class="col-xs-3 strong text-muted">ASSOCIATIONS</div>

		<div class="col-xs-9">
			<ul class="list-unstyled margin-bottom ">
				<li class="col-xs-6 strong">Position</li>
				<li class="col-xs-4 strong">Association Name</li>
				<li class="col-xs-2 strong">Years</li>
			</ul>
			<?php foreach($association as $association):?>
			<ul class="list-unstyled padding-bottom">
				<li class="col-xs-6 small"><?= $association->position;?></li>
				<li class="col-xs-4 small"><?= $association->association;?></li>
				<li class="col-xs-2 small"><?= $association->year_from;?>-<?= $association->year_to;?>
				</li>
			</ul>
			<?php endforeach;?>
		</div>

	</div>
	<?php }?>

	<?php if($license){?>
	<div class="clearfix margin-bottom border-bottom">
		<div class="col-xs-3 strong text-muted">LICENSE</div>

		<div class="col-xs-9">
			<ul class="list-unstyled margin-bottom ">
				<li class="col-xs-6 strong">State</li>
				<li class="col-xs-4 strong">License status</li>
				<li class="col-xs-2 strong">Acquired</li>
			</ul>
			<?php foreach($license as $license):?>
			<ul class="list-unstyled padding-bottom">
				<li class="col-xs-6 small"><?= $license->location;?></li>
				<li class="col-xs-4 small"><?= $license->status;?></li>
				<li class="col-xs-2 small"><?= $license->acquired;?></li>
			</ul>
			<?php endforeach;?>
		</div>

	</div>
	<?php }?>


</div>

<!-- <div class="panel-group" id="accordion">
				
				<div class="panel panel-info">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								href="#collapseThree"> Help and Tips </a>
						</h4>
					</div>
					
				</div>
			</div>
 -->

<?php 
if($this->commoncall->getModule('Reviews') == '51'){
	echo Modules::run('reviews/reviews/index');
}
?>


<!-- Modal -->
<form class="row form-inline" role="form"
	name="post_enq_form" id="post_enq_form" method="POST">
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">



		<div class="modal-dialog">
			<div class="modal-content">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">
						Send email to
						<?= ucfirst(strtolower($profile['details']->title));?>
					</h4>
				</div>
				<div class="modal-body">
					<span class="pull-right text-danger" id="msz_alert"> </span>


					</p>
					<input type="hidden" name="emailID" id="emailID"
						value="<?php echo $profile['details']->email;?>">

					<div class="form-group">
						<label for="name">Your Name </label> <input type="name"
							class="form-control" id="enqname" name="enqname"
							placeholder="Enter your full name">
					</div>
					</p>
					<div class="form-group">
						<label for="email_address">Your Email </label> <input type="email"
							class="form-control" id="enqemail" name="enqemail"
							placeholder="Enter your Email">
					</div>

					</p>
					<div class="form-group">
						<label for="mail_description">Enter your mail ( Minimum 50
							character )</label>
						<textarea class="full-width text" cols="60" name="enqdescription"
							id="enqdescription" rows="5"></textarea>
					</div>

				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
					<button type="button" class="btn btn-primary" id="btn_enq_submit">Save</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->

	</div>
	<!-- /.modal -->


</form>
